/**
 * 用户信息服务 - api接口
 */
import request from '@/utils/request'

export function getListUser(params) {
  return request({
    url: '/syUserInfo/',
    method: 'get',
    params
  })
}

export function getUser(params) {
  return request({
    url: '/syUserInfo/' + params.productId,
    method: 'get',
    params
  })
}

export function getPageUser(params) {
  return request({
    url: '/syUserInfo/page',
    method: 'get',
    params
  })
}

export function updateUser(params) {
  return request({
    url: '/syUserInfo/update',
    method: 'post',
    params
  })
}

export function createUser(params) {
  return request({
    url: '/syUserInfo/insert',
    method: 'post',
    params
  })
}

export function deleteUser(params) {
  return request({
    url: '/syUserInfo/delete',
    method: 'post',
    params
  })
}
